<form action="{:url()}" method="post" class="form_single">
<div class="box">
  <div class="box-header ">
    
    <ob_link><a class="btn pricelist" url="{:url('staffAddPriceList', array('id' => $info['id']))}"><i class="fa fa-plus"></i> 调 薪</a></ob_link>
    &nbsp;
    <ob_link><a class="btn pricelist" url="{:url('staffMonthPriceList', array('id' => $info['id']))}"><i class="fa fa-cny"></i> 月 薪</a></ob_link>
    </div>
    <br/>
  </div>
    
  <div class="box-body table-responsive">
     <div class="box-body">
        <div class="row">
          <div class="col-md-4">
            <div class="form-group">
              <label>姓名</label>
              <span>（员工姓名）</span>
              <input readonly="readonly" class="form-control" name="staff_name" placeholder="请输入姓名" type="text" value="{$info['staff_name']}">
            </div>
          </div>
          <div class="col-md-4">
            <div class="form-group">
              <label>工资卡号</label>
              <span>（员工工资卡号）</span>
              <input 
               class="form-control" name="pay_id" placeholder="请输入工资卡号" type="text"  value="{$info['pay_id']}">
            </div>
          </div>

          <div class="col-md-4">
            <div class="form-group">
              <label>银行名</label>
              <span>（员工工资卡号所属银行）</span>
              <input 
               class="form-control" name="pay_name"  type="text" placeholder="请添加银行名"  value="{$info['pay_name']}">
            </div>
          </div>

          <div class="col-md-6">
          <div class="form-group">
            <label style="width:100%">试用期薪资<span>（基本工资+全勤+绩效+社保补贴+持证补贴+其他补贴+其他=综合薪资）</span></label>
           <input class="form-control" style="width:12.5%;float: left" name="probationpay1" placeholder="基本工资" type="text" value="{$info['probationpay1']}">
            <input class="form-control" style="width:12.5%;float: left" name="probationpay2" placeholder="全勤" type="text" value="{$info['probationpay2']}">
            <input class="form-control" style="width:12.5%;float: left" name="probationpay3" placeholder="绩效" type="text" value="{$info['probationpay3']}">
            <input class="form-control" style="width:12.5%;float: left" name="probationpay4" placeholder="社保补贴" type="text" value="{$info['probationpay4']}">
            <input class="form-control" style="width:12.5%;float: left" name="probationpay5" placeholder="持证补贴" type="text" value="{$info['probationpay5']}">
            <input class="form-control" style="width:12.5%;float: left" name="probationpay6" placeholder="其他补贴" type="text" value="{$info['probationpay6']}">
            <input class="form-control" style="width:12.5%;float: left" name="probationpay7" placeholder="其它" type="text" value="{$info['probationpay7']}">
            <input class="form-control" style="width:12.5%;float: left" name="probationpay" placeholder="综合薪资" type="text" value="{$info['probationpay']}">
          </div>
        </div>

        <div class="col-md-6">
          <div class="form-group">
            <label style="width:100%">转正薪资<span>（基本工资+全勤+绩效+社保补贴+持证补贴+其他补贴+其他=综合薪资）</span></label>
           <input class="form-control" style="width:12.5%;float: left" name="positivepay1" placeholder="基本工资" type="text" value="{$info['positivepay1']}">
            <input class="form-control" style="width:12.5%;float: left" name="positivepay2" placeholder="全勤" type="text" value="{$info['positivepay2']}">
            <input class="form-control" style="width:12.5%;float: left" name="positivepay3" placeholder="绩效" type="text" value="{$info['positivepay3']}">
            <input class="form-control" style="width:12.5%;float: left" name="positivepay4" placeholder="社保补贴" type="text" value="{$info['positivepay4']}">
            <input class="form-control" style="width:12.5%;float: left" name="positivepay5" placeholder="持证补贴" type="text" value="{$info['positivepay5']}">
            <input class="form-control" style="width:12.5%;float: left" name="probationpay6" placeholder="其他补贴" type="text" value="{$info['probationpay6']}">
            <input class="form-control" style="width:12.5%;float: left" name="positivepay7" placeholder="其它" type="text" value="{$info['positivepay7']}">
            <input class="form-control" style="width:12.5%;float: left" name="probationpay" placeholder="综合薪资" type="text" value="{$info['probationpay']}">
          </div>
        </div>

         <!--  <div class="col-md-4">
            <div class="form-group">
              <label>当前薪资</label>
              <span>（基本工资+全勤+补贴+绩效）</span>
              <input class="form-control" 
               type="text" {if condition="$month_price['price'] neq 0"} value="{$month_price['price1']}+{$month_price['price2']}+{$month_price['price3']}+{$month_price['price4']}={$month_price['price']}"{else/} value="还未添加月薪"{/if}>
            </div>
          </div> -->

        </div>
        <div class="box-footer" style="margin-top: 20px">
          <input type="hidden" name="id" value="{$info['id']}"/>
          
          {include file="layout/edit_btn_group"/}
        </div>

      </div>

</div>
</form>
<script src="__STATIC__/module/admin/laydate/laydate.js"></script>
<script src="__STATIC__/module/admin/laydate/layer.js"></script>
<script>
    //导出功能
    $(".export").click(function(){
        
        window.location.href = searchAllFormUrl($(".export"));
    });
    //加薪
    $('.pricelist').click(function(){
      url=$(this).attr('url');
      layer.open({
        type: 2,
        shade: false,
        title: false, //不显示标题
        content:url, //捕获的元素
        area: ['800px','600px']
      });
    })
    // 时间插件
    lay('.test-item').each(function(){
      laydate.render({
        elem: this
        ,trigger: 'click'
      });
   });
//删除
    $('.layerDel').click(function(){
      var target =$(this).attr('url');
      layer.confirm('您确定要删除吗？', {
        btn: ['确认','取消'] //按钮
      }, function(){
        $.get(target).success(function(data){
          layer.closeAll();
          obalert(data);
        });
      })
    })
//审核
     $('.layerAudit').click(function(){
      var target =$(this).attr('url');
      var id=$(this).attr('id')
      var msg='';
      if(id==1){
        msg='您确定审核未通过吗？'
      }else{
        msg='您确定审核通过吗？'
      }
      layer.confirm(msg, {
        btn: ['确认','取消'] //按钮
      }, function(){
        $.get(target).success(function(data){
          layer.closeAll();
          obalert(data);
        });
      })
    })
</script>